package cn.tedu.submarine;

import javax.swing.*;

/** 炸弹 */
public class Bomb extends SeaObject {

    public Bomb(int x,int y){//每个炸弹的x/y都是不同的
        super(9,12,x,y,3);
    }

    @Override
   public void move() {
        y+=speed;
    }
    public  ImageIcon getImage(){
        return Images.bomb;
    }
    public boolean isOutOfBounds(){
        return this.y>=World.HEIGHT;
    }

}
